package tag29_20_08.serial_2;

import java.io.*;

//class Blume implements Serializable {
//	
//	private static final long serialVersionUID = 1L;
//	
//	int farbe;
//}
class Blume implements Serializable {

	private static final long serialVersionUID = 2L;

	String name;
}

public class Ser08_KlassenversionNichtInDerPruefung {
	public static void main(String[] args) throws Exception {

		// Blume b1 = new Blume();
		//
		// ObjectOutputStream oos = new ObjectOutputStream(new
		// FileOutputStream("blume"));
		// oos.writeObject(b1);
		// oos.close();
		//
		// System.out.println("Serialisiert: " + b1);

		ObjectInputStream ois = new ObjectInputStream(new FileInputStream(
				"blume"));
		Object obj2 = ois.readObject();
		ois.close();

		System.out.println("Deserialisieret: " + obj2);

	}

}
